// 更改 Vuex 的 store 中的状态的唯一方法是提交 mutation

import * as types from './mutation-types'   //  把被加载模块整体引入的意思

const mutations = {
  [types.SET_SINGER] (state, singer) {
    state.singer = singer
  }
}

export default mutations